{% block sw_discard_changes_modal %}
<sw-modal
    variant="small"
    :title="$t('sw-discard-changes-modal.title')"
    @modal-close="keepEditing"
>
    {% block sw_discard_changes_modal_text %}
    <p class="sw-discard-changes-modal-delete-text">
        {{ $t('sw-discard-changes-modal.message') }}
    </p>
    {% endblock %}

    {% block sw_discard_changes_modal_footer %}
    <template #modal-footer>
        {% block sw_discard_changes_modal_discard_changes_modal_cancel %}
        <mt-button
            variant="secondary"
            @click="keepEditing"
        >
            {{ $t('sw-discard-changes-modal.actions.keepEditing') }}
        </mt-button>

        <mt-button
            variant="critical"
            @click="discardChanges"
        >
            {{ $t('sw-discard-changes-modal.actions.discard') }}
        </mt-button>
        {% endblock %}
    </template>
    {% endblock %}
</sw-modal>
{% endblock %}
